package aboutbook;

public class Book {

    //图书名称
    private String name;

    //图书作者
    private String author;

    //图书价格
    private int price;

    //图书种类
    private String type;

    //图书状态
    private boolean islend;

    public Book(String name, String author, int price, String type) {
        this.name = name;
        this.author = author;
        this.price = price;
        this.type = type;
    }

    public String getAuthor() {
        return author;
    }

    public void setAuthor(String author) {
        this.author = author;
    }

    public int getPrice() {
        return price;
    }

    public void setPrice(int price) {
        this.price = price;
    }

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }

    public Boolean getIslend() {
        return islend;
    }

    public void setIslend(Boolean islend) {
        this.islend = islend;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }



    @Override
    public String toString() {
        return "Book{" +
                "name='" + name + '\'' +
                ", author='" + author + '\'' +
                ", price=" + price +
                ", type='" + type + '\'' +
                ", islend=" + islend +
                '}';
    }
}
